package com.cloud.school.bus.teacherhelper.protocol.statistics;

import org.apache.http.Header;
import org.json.JSONObject;

import com.cloud.school.bus.teacherhelper.protocol.baseresponse.BaseJsonHttpResponse;

public class GetUploadingCountResponse extends BaseJsonHttpResponse {

	protected int mp4zongshu = 0;
	protected int piczongshu = 0;
	
	@Override
	public void onSuccess(int statusCode, Header[] headers,
			String responseString) throws Throwable {
		if("1".equals(code)){
			JSONObject mainJsonObject = new JSONObject(responseString);
			mp4zongshu = mainJsonObject.optInt("mp4zongshu",0);
			piczongshu = mainJsonObject.optInt("zongshu",0);
		}
	}

}
